<?php 
	
	use Monolog\Logger;
	use Monolog\Handler\StreamHandler;


	//引入自动加载文件
	include './vendor/autoload.php';
	

	

	// create a log channel
	$log = new Logger('name');
	$log->pushHandler(new StreamHandler('./log/1.log', Logger::WARNING));

	// add records to the log
	$log->warning('Foo');
	$log->error('Bar');







 ?>